-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.2] Various backports #11179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 6.2
Are you sure you want to change the base?
[6.2] Various backports #11179
Conversation
(cherry picked from commit b3955d7)
(cherry picked from commit 3ce10df)
(cherry picked from commit 3e3fd6f)
(cherry picked from commit fed020e)
Added handling of subclasses with the same table name and discriminator condition. Also avoid useless left-joins when not finding table references instead of throwing an exception. (cherry picked from commit 22091b2)
(cherry picked from commit eb11676)
(cherry picked from commit dbaf309)
Also, fix a small bug in special not-null discriminator predicate rendering (cherry picked from commit 317334f)
…ake other backports work
|
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
| return baseRestriction; | ||
| } | ||
|
|
||
| final SqmJunctionPredicate combinedPredicate; |
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
combinePredicates
| public void cleanup(SessionFactoryScope scope) { | ||
| scope.inTransaction( s -> { | ||
| s.createNativeQuery( "delete from root_one" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA1" ).executeUpdate(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
QueryProducerImplementor.createNativeQuery
| scope.inTransaction( s -> { | ||
| s.createNativeQuery( "delete from root_one" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA1" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA2" ).executeUpdate(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
QueryProducerImplementor.createNativeQuery
| s.createNativeQuery( "delete from root_one" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA1" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA2" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from child_entity" ).executeUpdate(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
QueryProducerImplementor.createNativeQuery
| s.createNativeQuery( "delete from SubChildEntityA1" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from SubChildEntityA2" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from child_entity" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from BaseClass" ).executeUpdate(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
QueryProducerImplementor.createNativeQuery
| s.createNativeQuery( "delete from SubChildEntityA2" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from child_entity" ).executeUpdate(); | ||
| s.createNativeQuery( "delete from BaseClass" ).executeUpdate(); | ||
| } ); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
DON'T MERGE YET.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.